package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.FlashSale;
import com.nbsaas.boot.marketing.api.domain.response.FlashSaleResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 秒杀活动-实体对象转化成响应对象
*/

public class FlashSaleResponseConvert  implements Converter<FlashSaleResponse,FlashSale> {

    @Override
    public FlashSaleResponse convert(FlashSale source) {
        FlashSaleResponse  result = new  FlashSaleResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

